package com.czk.model.observe;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/12 20:55
 */
public class Client {
    public static void main(String[] args) {
        WheatherData wheatherData=new WheatherData();
        // 创建观察者
        CurrentCondition currentCondition=new CurrentCondition();
        // 注册
        wheatherData.Register(currentCondition);
        // 更新
        wheatherData.setData(37.5f,55.5f,18.5f);
    }
}
